import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/application/UIExtensionContext.d.ts',
  content: "/*\n * Copyright (c) 2023-2024 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\"),\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit AbilityKit\n */\nimport type { AbilityResult } from '../ability/abilityResult';\nimport type { AsyncCallback } from '../@ohos.base';\nimport type { ConnectOptions } from '../ability/connectOptions';\nimport ExtensionContext from './ExtensionContext';\nimport type Want from '../@ohos.app.ability.Want';\nimport type StartOptions from '../@ohos.app.ability.StartOptions';\nimport type AtomicServiceOptions from '../@ohos.app.ability.AtomicServiceOptions';\nimport OpenLinkOptions from '../@ohos.app.ability.OpenLinkOptions';\nimport type ConfigurationConstant from '../@ohos.app.ability.ConfigurationConstant';\nimport type UIServiceProxy from './UIServiceProxy';\nimport type UIServiceExtensionConnectCallback from './UIServiceExtensionConnectCallback';\n/**\n * The context of UI extension. It allows access to UIExtension-specific resources.\n *\n * @extends ExtensionContext\n * @syscap SystemCapability.Ability.AbilityRuntime.Core\n * @stagemodelonly\n * @since 10\n */\nexport default class UIExtensionContext extends ExtensionContext {\n    /**\n     * UI extension uses this method to start a specific ability.If the caller application is in foreground,\n     * you can use this method to start ability; If the caller application is in the background,\n     * you need to apply for permission:ohos.permission.START_ABILITIES_FROM_BACKGROUND.\n     * If the target ability is visible, you can start the target ability; If the target ability is invisible,\n     * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible ability.\n     * If the target ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC.\n     *\n     * @param { Want } want - Indicates the ability to start.\n     * @param { AsyncCallback<void> } callback - The callback of startAbility.\n     * @throws { BusinessError } 201 - The application does not have permission to call the interface.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000010 - The call with the continuation and prepare continuation flag is forbidden.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 10\n     */\n    /**\n     * UI extension uses this method to start a specific ability.If the caller application is in foreground,\n     * you can use this method to start ability; If the caller application is in the background,\n     * you need to apply for permission:ohos.permission.START_ABILITIES_FROM_BACKGROUND.\n     * If the target ability is visible, you can start the target ability; If the target ability is invisible,\n     * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible ability.\n     * If the target ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC.\n     *\n     * @param { Want } want - Indicates the ability to start.\n     * @param { AsyncCallback<void> } callback - The callback of startAbility.\n     * @throws { BusinessError } 201 - The application does not have permission to call the interface.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000010 - The call with the continuation and prepare continuation flag is forbidden.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000018 - Redirection to a third-party application is not allowed in API version 11 or later.\n     * @throws { BusinessError } 16000019 - No matching ability is found.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16000069 - The extension cannot start the third party application.\n     * @throws { BusinessError } 16000070 - The extension cannot start the service.\n     * @throws { BusinessError } 16000073 - The app clone index is invalid.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 12\n     */\n    /**\n     * UI extension uses this method to start a specific ability.If the caller application is in foreground,\n     * you can use this method to start ability; If the caller application is in the background,\n     * you need to apply for permission:ohos.permission.START_ABILITIES_FROM_BACKGROUND.\n     * If the target ability is visible, you can start the target ability; If the target ability is invisible,\n     * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible ability.\n     * If the target ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC.\n     *\n     * @param { Want } want - Indicates the ability to start.\n     * @param { AsyncCallback<void> } callback - The callback of startAbility.\n     * @throws { BusinessError } 201 - The application does not have permission to call the interface.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000010 - The call with the continuation and prepare continuation flag is forbidden.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000018 - Redirection to a third-party application is not allowed in API version 11 or later.\n     * @throws { BusinessError } 16000019 - No matching ability is found.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16000069 - The extension cannot start the third party application.\n     * @throws { BusinessError } 16000070 - The extension cannot start the service.\n     * @throws { BusinessError } 16000071 - App clone is not supported.\n     * @throws { BusinessError } 16000072 - App clone or multi-instance is not supported.\n     * @throws { BusinessError } 16000073 - The app clone index is invalid.\n     * @throws { BusinessError } 16000076 - The app instance key is invalid.\n     * @throws { BusinessError } 16000077 - The number of app instances reaches the limit.\n     * @throws { BusinessError } 16000078 - The multi-instance is not supported.\n     * @throws { BusinessError } 16000079 - The APP_INSTANCE_KEY cannot be specified.\n     * @throws { BusinessError } 16000080 - Creating a new instance is not supported.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 14\n     */\n    startAbility(want: Want, callback: AsyncCallback<void>): void;\n    /**\n     * UI extension uses this method to start a specific ability.If the caller application is in foreground,\n     * you can use this method to start ability; If the caller application is in the background,\n     * you need to apply for permission:ohos.permission.START_ABILITIES_FROM_BACKGROUND.\n     * If the target ability is visible, you can start the target ability; If the target ability is invisible,\n     * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible ability.\n     * If the target ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC.\n     *\n     * @param { Want } want - Indicates the ability to start.\n     * @param { StartOptions } options - Indicates the start options.\n     * @param { AsyncCallback<void> } callback - The callback of startAbility.\n     * @throws { BusinessError } 201 - The application does not have permission to call the interface.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 10\n     */\n    /**\n     * UI extension uses this method to start a specific ability.If the caller application is in foreground,\n     * you can use this method to start ability; If the caller application is in the background,\n     * you need to apply for permission:ohos.permission.START_ABILITIES_FROM_BACKGROUND.\n     * If the target ability is visible, you can start the target ability; If the target ability is invisible,\n     * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible ability.\n     * If the target ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC.\n     *\n     * @param { Want } want - Indicates the ability to start.\n     * @param { StartOptions } options - Indicates the start options.\n     * @param { AsyncCallback<void> } callback - The callback of startAbility.\n     * @throws { BusinessError } 201 - The application does not have permission to call the interface.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000018 - Redirection to a third-party application is not allowed in API version 11 or later.\n     * @throws { BusinessError } 16000019 - No matching ability is found.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16000069 - The extension cannot start the third party application.\n     * @throws { BusinessError } 16000070 - The extension cannot start the service.\n     * @throws { BusinessError } 16000073 - The app clone index is invalid.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 12\n     */\n    /**\n     * UI extension uses this method to start a specific ability.If the caller application is in foreground,\n     * you can use this method to start ability; If the caller application is in the background,\n     * you need to apply for permission:ohos.permission.START_ABILITIES_FROM_BACKGROUND.\n     * If the target ability is visible, you can start the target ability; If the target ability is invisible,\n     * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible ability.\n     * If the target ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC.\n     *\n     * @param { Want } want - Indicates the ability to start.\n     * @param { StartOptions } options - Indicates the start options.\n     * @param { AsyncCallback<void> } callback - The callback of startAbility.\n     * @throws { BusinessError } 201 - The application does not have permission to call the interface.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000018 - Redirection to a third-party application is not allowed in API version 11 or later.\n     * @throws { BusinessError } 16000019 - No matching ability is found.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16000069 - The extension cannot start the third party application.\n     * @throws { BusinessError } 16000070 - The extension cannot start the service.\n     * @throws { BusinessError } 16000071 - App clone is not supported.\n     * @throws { BusinessError } 16000072 - App clone or multi-instance is not supported.\n     * @throws { BusinessError } 16000073 - The app clone index is invalid.\n     * @throws { BusinessError } 16000076 - The app instance key is invalid.\n     * @throws { BusinessError } 16000077 - The number of app instances reaches the limit.\n     * @throws { BusinessError } 16000078 - The multi-instance is not supported.\n     * @throws { BusinessError } 16000079 - The APP_INSTANCE_KEY cannot be specified.\n     * @throws { BusinessError } 16000080 - Creating a new instance is not supported.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 14\n     */\n    startAbility(want: Want, options: StartOptions, callback: AsyncCallback<void>): void;\n    /**\n     * UI extension uses this method to start a specific ability.If the caller application is in foreground,\n     * you can use this method to start ability; If the caller application is in the background,\n     * you need to apply for permission:ohos.permission.START_ABILITIES_FROM_BACKGROUND.\n     * If the target ability is visible, you can start the target ability; If the target ability is invisible,\n     * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible ability.\n     * If the target ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC.\n     *\n     * @param { Want } want - Indicates the ability to start.\n     * @param { StartOptions } [options] - Indicates the start options.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 201 - The application does not have permission to call the interface.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000010 - The call with the continuation and prepare continuation flag is forbidden.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 10\n     */\n    /**\n     * UI extension uses this method to start a specific ability.If the caller application is in foreground,\n     * you can use this method to start ability; If the caller application is in the background,\n     * you need to apply for permission:ohos.permission.START_ABILITIES_FROM_BACKGROUND.\n     * If the target ability is visible, you can start the target ability; If the target ability is invisible,\n     * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible ability.\n     * If the target ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC.\n     *\n     * @param { Want } want - Indicates the ability to start.\n     * @param { StartOptions } [options] - Indicates the start options.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 201 - The application does not have permission to call the interface.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000010 - The call with the continuation and prepare continuation flag is forbidden.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000018 - Redirection to a third-party application is not allowed in API version 11 or later.\n     * @throws { BusinessError } 16000019 - No matching ability is found.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16000069 - The extension cannot start the third party application.\n     * @throws { BusinessError } 16000070 - The extension cannot start the service.\n     * @throws { BusinessError } 16000073 - The app clone index is invalid.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 12\n     */\n    /**\n     * UI extension uses this method to start a specific ability.If the caller application is in foreground,\n     * you can use this method to start ability; If the caller application is in the background,\n     * you need to apply for permission:ohos.permission.START_ABILITIES_FROM_BACKGROUND.\n     * If the target ability is visible, you can start the target ability; If the target ability is invisible,\n     * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible ability.\n     * If the target ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC.\n     *\n     * @param { Want } want - Indicates the ability to start.\n     * @param { StartOptions } [options] - Indicates the start options.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 201 - The application does not have permission to call the interface.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000010 - The call with the continuation and prepare continuation flag is forbidden.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000018 - Redirection to a third-party application is not allowed in API version 11 or later.\n     * @throws { BusinessError } 16000019 - No matching ability is found.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16000069 - The extension cannot start the third party application.\n     * @throws { BusinessError } 16000070 - The extension cannot start the service.\n     * @throws { BusinessError } 16000071 - App clone is not supported.\n     * @throws { BusinessError } 16000072 - App clone or multi-instance is not supported.\n     * @throws { BusinessError } 16000073 - The app clone index is invalid.\n     * @throws { BusinessError } 16000076 - The app instance key is invalid.\n     * @throws { BusinessError } 16000077 - The number of app instances reaches the limit.\n     * @throws { BusinessError } 16000078 - The multi-instance is not supported.\n     * @throws { BusinessError } 16000079 - The APP_INSTANCE_KEY cannot be specified.\n     * @throws { BusinessError } 16000080 - Creating a new instance is not supported.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 14\n     */\n    startAbility(want: Want, options?: StartOptions): Promise<void>;\n    /**\n     * UI extension uses this method to start a specific ability by implicit want.If the caller application is in foreground,\n     * you can use this method to start ability; If the caller application is in the background,\n     * you need to apply for permission:ohos.permission.START_ABILITIES_FROM_BACKGROUND.\n     * If the target ability is visible, you can start the target ability; If the target ability is invisible,\n     * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible ability.\n     * If the target ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC.\n     *\n     * @param { string } link - Indicates the ability to start.\n     * @param { OpenLinkOptions } [options] - Indicates the open link options.\n     * @param { AsyncCallback<AbilityResult> } [callback] - The callback is used to return the ability result.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 201 - The application does not have permission to call the interface.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000010 - The call with the continuation and prepare continuation flag is forbidden.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000019 - No matching ability is found.\n     * @throws { BusinessError } 16000069 - The extension cannot start the third party application.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 12\n     */\n    openLink(link: string, options?: OpenLinkOptions, callback?: AsyncCallback<AbilityResult>): Promise<void>;\n    /**\n     * Starts an ability and returns the execution result when the ability is destroyed.\n     * If the caller application is in foreground, you can use this method to start ability; If the caller application\n     * is in the background, you need to apply for permission:ohos.permission.START_ABILITIES_FROM_BACKGROUND.\n     * If the target ability is visible, you can start the target ability; If the target ability is invisible,\n     * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible ability.\n     * If the target ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC.\n     *\n     * @param { Want } want - Indicates the ability to start.\n     * @param { AsyncCallback<AbilityResult> } callback - The callback is used to return the result of startAbility.\n     * @throws { BusinessError } 201 - The application does not have permission to call the interface.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000010 - The call with the continuation and prepare continuation flag is forbidden.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 10\n     */\n    /**\n     * Starts an ability and returns the execution result when the ability is destroyed.\n     * If the caller application is in foreground, you can use this method to start ability; If the caller application\n     * is in the background, you need to apply for permission:ohos.permission.START_ABILITIES_FROM_BACKGROUND.\n     * If the target ability is visible, you can start the target ability; If the target ability is invisible,\n     * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible ability.\n     * If the target ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC.\n     *\n     * @param { Want } want - Indicates the ability to start.\n     * @param { AsyncCallback<AbilityResult> } callback - The callback is used to return the result of startAbility.\n     * @throws { BusinessError } 201 - The application does not have permission to call the interface.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000010 - The call with the continuation and prepare continuation flag is forbidden.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000018 - Redirection to a third-party application is not allowed in API version 11 or later.\n     * @throws { BusinessError } 16000019 - No matching ability is found.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16000069 - The extension cannot start the third party application.\n     * @throws { BusinessError } 16000070 - The extension cannot start the service.\n     * @throws { BusinessError } 16000073 - The app clone index is invalid.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 12\n     */\n    /**\n     * Starts an ability and returns the execution result when the ability is destroyed.\n     * If the caller application is in foreground, you can use this method to start ability; If the caller application\n     * is in the background, you need to apply for permission:ohos.permission.START_ABILITIES_FROM_BACKGROUND.\n     * If the target ability is visible, you can start the target ability; If the target ability is invisible,\n     * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible ability.\n     * If the target ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC.\n     *\n     * @param { Want } want - Indicates the ability to start.\n     * @param { AsyncCallback<AbilityResult> } callback - The callback is used to return the result of startAbility.\n     * @throws { BusinessError } 201 - The application does not have permission to call the interface.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000010 - The call with the continuation and prepare continuation flag is forbidden.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000018 - Redirection to a third-party application is not allowed in API version 11 or later.\n     * @throws { BusinessError } 16000019 - No matching ability is found.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16000069 - The extension cannot start the third party application.\n     * @throws { BusinessError } 16000070 - The extension cannot start the service.\n     * @throws { BusinessError } 16000071 - App clone is not supported.\n     * @throws { BusinessError } 16000072 - App clone or multi-instance is not supported.\n     * @throws { BusinessError } 16000073 - The app clone index is invalid.\n     * @throws { BusinessError } 16000076 - The app instance key is invalid.\n     * @throws { BusinessError } 16000077 - The number of app instances reaches the limit.\n     * @throws { BusinessError } 16000078 - The multi-instance is not supported.\n     * @throws { BusinessError } 16000079 - The APP_INSTANCE_KEY cannot be specified.\n     * @throws { BusinessError } 16000080 - Creating a new instance is not supported.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 14\n     */\n    startAbilityForResult(want: Want, callback: AsyncCallback<AbilityResult>): void;\n    /**\n     * Starts an ability and returns the execution result when the ability is destroyed.\n     * If the caller application is in foreground, you can use this method to start ability; If the caller application\n     * is in the background, you need to apply for permission:ohos.permission.START_ABILITIES_FROM_BACKGROUND.\n     * If the target ability is visible, you can start the target ability; If the target ability is invisible,\n     * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible ability.\n     * If the target ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC.\n     *\n     * @param { Want } want - Indicates the ability to start.\n     * @param { StartOptions } options - Indicates the start options.\n     * @param { AsyncCallback<AbilityResult> } callback - The callback is used to return the result of startAbility.\n     * @throws { BusinessError } 201 - The application does not have permission to call the interface.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 10\n     */\n    /**\n     * Starts an ability and returns the execution result when the ability is destroyed.\n     * If the caller application is in foreground, you can use this method to start ability; If the caller application\n     * is in the background, you need to apply for permission:ohos.permission.START_ABILITIES_FROM_BACKGROUND.\n     * If the target ability is visible, you can start the target ability; If the target ability is invisible,\n     * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible ability.\n     * If the target ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC.\n     *\n     * @param { Want } want - Indicates the ability to start.\n     * @param { StartOptions } options - Indicates the start options.\n     * @param { AsyncCallback<AbilityResult> } callback - The callback is used to return the result of startAbility.\n     * @throws { BusinessError } 201 - The application does not have permission to call the interface.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000018 - Redirection to a third-party application is not allowed in API version 11 or later.\n     * @throws { BusinessError } 16000019 - No matching ability is found.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16000069 - The extension cannot start the third party application.\n     * @throws { BusinessError } 16000070 - The extension cannot start the service.\n     * @throws { BusinessError } 16000073 - The app clone index is invalid.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 12\n     */\n    /**\n     * Starts an ability and returns the execution result when the ability is destroyed.\n     * If the caller application is in foreground, you can use this method to start ability; If the caller application\n     * is in the background, you need to apply for permission:ohos.permission.START_ABILITIES_FROM_BACKGROUND.\n     * If the target ability is visible, you can start the target ability; If the target ability is invisible,\n     * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible ability.\n     * If the target ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC.\n     *\n     * @param { Want } want - Indicates the ability to start.\n     * @param { StartOptions } options - Indicates the start options.\n     * @param { AsyncCallback<AbilityResult> } callback - The callback is used to return the result of startAbility.\n     * @throws { BusinessError } 201 - The application does not have permission to call the interface.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000018 - Redirection to a third-party application is not allowed in API version 11 or later.\n     * @throws { BusinessError } 16000019 - No matching ability is found.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16000069 - The extension cannot start the third party application.\n     * @throws { BusinessError } 16000070 - The extension cannot start the service.\n     * @throws { BusinessError } 16000071 - App clone is not supported.\n     * @throws { BusinessError } 16000072 - App clone or multi-instance is not supported.\n     * @throws { BusinessError } 16000073 - The app clone index is invalid.\n     * @throws { BusinessError } 16000076 - The app instance key is invalid.\n     * @throws { BusinessError } 16000077 - The number of app instances reaches the limit.\n     * @throws { BusinessError } 16000078 - The multi-instance is not supported.\n     * @throws { BusinessError } 16000079 - The APP_INSTANCE_KEY cannot be specified.\n     * @throws { BusinessError } 16000080 - Creating a new instance is not supported.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 14\n     */\n    startAbilityForResult(want: Want, options: StartOptions, callback: AsyncCallback<AbilityResult>): void;\n    /**\n     * Starts an ability and returns the execution result when the ability is destroyed.\n     * If the caller application is in foreground, you can use this method to start ability; If the caller application\n     * is in the background, you need to apply for permission:ohos.permission.START_ABILITIES_FROM_BACKGROUND.\n     * If the target ability is visible, you can start the target ability; If the target ability is invisible,\n     * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible ability.\n     * If the target ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC.\n     *\n     * @param { Want } want - Indicates the ability to start.\n     * @param { StartOptions } [options] - Indicates the start options.\n     * @returns { Promise<AbilityResult> } Returns the result of startAbility.\n     * @throws { BusinessError } 201 - The application does not have permission to call the interface.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000010 - The call with the continuation and prepare continuation flag is forbidden.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 10\n     */\n    /**\n     * Starts an ability and returns the execution result when the ability is destroyed.\n     * If the caller application is in foreground, you can use this method to start ability; If the caller application\n     * is in the background, you need to apply for permission:ohos.permission.START_ABILITIES_FROM_BACKGROUND.\n     * If the target ability is visible, you can start the target ability; If the target ability is invisible,\n     * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible ability.\n     * If the target ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC.\n     *\n     * @param { Want } want - Indicates the ability to start.\n     * @param { StartOptions } [options] - Indicates the start options.\n     * @returns { Promise<AbilityResult> } Returns the result of startAbility.\n     * @throws { BusinessError } 201 - The application does not have permission to call the interface.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000010 - The call with the continuation and prepare continuation flag is forbidden.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000018 - Redirection to a third-party application is not allowed in API version 11 or later.\n     * @throws { BusinessError } 16000019 - No matching ability is found.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16000069 - The extension cannot start the third party application.\n     * @throws { BusinessError } 16000070 - The extension cannot start the service.\n     * @throws { BusinessError } 16000073 - The app clone index is invalid.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 12\n     */\n    /**\n     * Starts an ability and returns the execution result when the ability is destroyed.\n     * If the caller application is in foreground, you can use this method to start ability; If the caller application\n     * is in the background, you need to apply for permission:ohos.permission.START_ABILITIES_FROM_BACKGROUND.\n     * If the target ability is visible, you can start the target ability; If the target ability is invisible,\n     * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible ability.\n     * If the target ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC.\n     *\n     * @param { Want } want - Indicates the ability to start.\n     * @param { StartOptions } [options] - Indicates the start options.\n     * @returns { Promise<AbilityResult> } Returns the result of startAbility.\n     * @throws { BusinessError } 201 - The application does not have permission to call the interface.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.\n     * @throws { BusinessError } 16000010 - The call with the continuation and prepare continuation flag is forbidden.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000018 - Redirection to a third-party application is not allowed in API version 11 or later.\n     * @throws { BusinessError } 16000019 - No matching ability is found.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16000069 - The extension cannot start the third party application.\n     * @throws { BusinessError } 16000070 - The extension cannot start the service.\n     * @throws { BusinessError } 16000071 - App clone is not supported.\n     * @throws { BusinessError } 16000072 - App clone or multi-instance is not supported.\n     * @throws { BusinessError } 16000073 - The app clone index is invalid.\n     * @throws { BusinessError } 16000076 - The app instance key is invalid.\n     * @throws { BusinessError } 16000077 - The number of app instances reaches the limit.\n     * @throws { BusinessError } 16000078 - The multi-instance is not supported.\n     * @throws { BusinessError } 16000079 - The APP_INSTANCE_KEY cannot be specified.\n     * @throws { BusinessError } 16000080 - Creating a new instance is not supported.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 14\n     */\n    startAbilityForResult(want: Want, options?: StartOptions): Promise<AbilityResult>;\n    /**\n     * Connects the current ability to an service extension ability.\n     * If the target service extension ability is visible, you can connect the target service extension ability;\n     * If the target service extension ability is invisible,\n     * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to connect target invisible service extension ability.\n     * If the target service extension ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC.\n     *\n     * @param { Want } want - The element name of the service ability\n     * @param { ConnectOptions } options - The remote object instance\n     * @returns { number } Returns the number code of the ability connected\n     * @throws { BusinessError } 201 - The application does not have permission to call the interface.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000006 - Cross-user operations are not allowed.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @throws { BusinessError } 16000070 - The extension cannot start the service.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 10\n     */\n    connectServiceExtensionAbility(want: Want, options: ConnectOptions): number;\n    /**\n     * Disconnect an ability from a service extension, in contrast to {@link connectAbility}.\n     *\n     * @param { number } connection - The number code of the ability connected\n     * @param { AsyncCallback<void> } callback - The callback of disconnectAbility.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 10\n     */\n    disconnectServiceExtensionAbility(connection: number, callback: AsyncCallback<void>): void;\n    /**\n     * Disconnect an ability from a service extension, in contrast to {@link connectAbility}.\n     *\n     * @param { number } connection - The number code of the ability connected\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 10\n     */\n    disconnectServiceExtensionAbility(connection: number): Promise<void>;\n    /**\n     * Report to system when the extension is drawn completed.\n     *\n     * @param { AsyncCallback<void> } callback - The callback of startUIExtensionAbility.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 12\n     */\n    reportDrawnCompleted(callback: AsyncCallback<void>): void;\n    /**\n     * Destroys the UI extension.\n     *\n     * @param { AsyncCallback<void> } callback - The callback of terminateSelf.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 12\n     */\n    terminateSelf(callback: AsyncCallback<void>): void;\n    /**\n     * Destroys the UI extension.\n     *\n     * @returns { Promise<void> } The promise returned by the function.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 12\n     */\n    terminateSelf(): Promise<void>;\n    /**\n     * Destroys the UI extension while returning the specified result code and data to the caller.\n     *\n     * @param { AbilityResult } parameter - Indicates the result to return.\n     * @param { AsyncCallback<void> } callback - The callback of terminateSelfWithResult.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 12\n     */\n    terminateSelfWithResult(parameter: AbilityResult, callback: AsyncCallback<void>): void;\n    /**\n     * Destroys the UI extension while returning the specified result code and data to the caller.\n     *\n     * @param { AbilityResult } parameter - Indicates the result to return.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 12\n     */\n    terminateSelfWithResult(parameter: AbilityResult): Promise<void>;\n    /**\n     * Full-screen pop-us startup atomic service.\n     *\n     * @param { string } appId - Globally unique identifier of an application, which is allocated by the cloud.\n     * @param { AtomicServiceOptions } [options] - Indicates the atomic service start options.\n     * @returns { Promise<AbilityResult> } Returns the result of openAtomicService.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000003 - The specified ID does not exist.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000069 - The extension cannot start the third party application.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 12\n     */\n    openAtomicService(appId: string, options?: AtomicServiceOptions): Promise<AbilityResult>;\n    /**\n     * Starts a UI service extension ability.\n     * If the target UI service extension ability is visible, you can start the target UI service extension ability;\n     * If the target UI service extension ability is invisible,\n     * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible UI service extension ability.\n     *\n     * @param { Want } want - Indicates the want info to start.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 201 - The application does not have permission to call the interface.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - Capability not supported.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000012 - The application is controlled.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000019 - No matching ability is found.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16200001 - The caller has been released.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 14\n     */\n    startUIServiceExtensionAbility(want: Want): Promise<void>;\n    /**\n     * Connects to a UI service extension ability.\n     * If the target UI service extension ability is visible, you can connect the target UI service extension ability;\n     * If the target UI service extension ability is invisible,\n     * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to connect target invisible UI service extension ability.\n     *\n     * @param { Want } want - Indicates the want info to connect.\n     * @param { UIServiceExtensionConnectCallback } callback - The callback of connection.\n     * @returns { Promise<UIServiceProxy> } The promise to get UIServiceProxy.\n     * @throws { BusinessError } 201 - The application does not have permission to call the interface.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 801 - Capability not supported.\n     * @throws { BusinessError } 16000001 - The specified ability does not exist.\n     * @throws { BusinessError } 16000002 - Incorrect ability type.\n     * @throws { BusinessError } 16000004 - Cannot start an invisible component.\n     * @throws { BusinessError } 16000005 - The specified process does not have the permission.\n     * @throws { BusinessError } 16000008 - The crowdtesting application expires.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000013 - The application is controlled by EDM.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @throws { BusinessError } 16000055 - Installation-free timed out.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 14\n     */\n    connectUIServiceExtensionAbility(want: Want, callback: UIServiceExtensionConnectCallback): Promise<UIServiceProxy>;\n    /**\n     * Disconnects from a UI service extension, in contrast to {@link connectUIServiceExtensionAbility}.\n     *\n     * @param { UIServiceProxy } proxy - The UI service proxy return by connectUIServiceExtensionAbility.\n     * @returns { Promise<void> } The promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @throws { BusinessError } 16000050 - Internal error.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 14\n     */\n    disconnectUIServiceExtensionAbility(proxy: UIServiceProxy): Promise<void>;\n    /**\n     * Set colorMode of uiextension.\n     *\n     * @param { ConfigurationConstant.ColorMode } colorMode - Color mode.\n     * @throws { BusinessError } 16000011 - The context does not exist.\n     * @syscap SystemCapability.Ability.AbilityRuntime.Core\n     * @stagemodelonly\n     * @since 18\n     */\n    setColorMode(colorMode: ConfigurationConstant.ColorMode): void;\n}\n",
}
export default FILE;